import { defineComponent, ref } from 'vue'

import { usePageHeight } from '@/hooks'

export default defineComponent({
  setup() {
    const iframeUrl = ref(import.meta.env.VITE_APP_SERVER_URL + '/bull-ui')

    const { pageHeight } = usePageHeight()

    return {
      iframeUrl,
      pageHeight
    }
  },
  render() {
    return (
      <div>
        <iframe
          src={this.iframeUrl}
          width={'100%'}
          height={this.pageHeight}
          frameborder={0}
        ></iframe>
      </div>
    )
  }
})
